/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Helper;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author Lu Xiaodi 
 */
public class Helper_FoodItemSearch implements Serializable {

    private String name;
    private String stakeholderName;
    private String pathName;
    private List<Helper_OutletFoodItem> outletItems = new ArrayList<Helper_OutletFoodItem>();

    public Helper_FoodItemSearch() {
    }

    public Helper_FoodItemSearch(String name, String stakeholdername, String pathName) {
        this.name = name;
        this.stakeholderName = stakeholdername;
        this.pathName = pathName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPathName() {
        return pathName;
    }

    public void setPathName(String pathName) {
        this.pathName = pathName;
    }

    public List<Helper_OutletFoodItem> getOutletItems() {
        return outletItems;
    }

    public void setOutletItems(List<Helper_OutletFoodItem> outletItems) {
        this.outletItems = outletItems;
    }

    public void addOutletItem(Helper_OutletFoodItem ho) {
        this.outletItems.add(ho);
    }

    public String getStakeholderName() {
        return stakeholderName;
    }

    public void setStakeholderName(String stakeholderName) {
        this.stakeholderName = stakeholderName;
    }
    
    

    @Override
    public String toString() {
        String resultStr = "food item: " + this.name + "\nContaining dishes: \n";
        for (Helper_OutletFoodItem oi : outletItems) {
            resultStr = resultStr + oi.toString() + "\n";
        }
        return resultStr;
    }
}
